import scrapy
from Myspider.items import PictureItem

class DemoSpider(scrapy.Spider):
    name = "Demo"
    allowed_domains = ["yzr3.s-game.cn"]
    start_urls = ["https://yzr3.s-game.cn/picture.html?adtag=pictture"]

    def parse(self, response):
        img_list =response.xpath('//*[@id="wall_list"]/li/a/img/@src').extract()
        
        # print("当前的返回对象是：",img_list)
        item = PictureItem()
        src_list =[]
        for img in img_list:
            
            src ="https://yzr3.s-game.cn/"+img
            print("图片地址是：",src)
            #此处有坑
            src_list.append(src)
        item["image_urls"]=src_list
        yield item